package com.dongdong.bookstore.module.common.service;

import com.dongdong.bookstore.module.common.dto.SliceFile;
import org.springframework.web.util.UriComponentsBuilder;

import java.io.IOException;
import java.util.Map;

/**
 * @author chiangkai
 * @date 2021-11-05
 * @email chiangkk@163.com
 */
public interface UploadService {
    Map<String, Object> checkBigFile(String fileName, String fileMd5, Integer fileSize, Integer chunkSize);

    Map<String, Object> uploadSlice(SliceFile sliceFile);

    Map<String, Object> merge(String fileName, String fileHash, Integer chunkSize, Integer fileSize) throws IOException;
}
